// login类型
export interface LoginForm {
  username: string
  password: string
}

interface dataType {
  token?: string
  message?: string
}

// response类型
export interface loginResponseData {
  code: number
  data: dataType
}
interface userDataType {
  checkUser: {
    userId: number
    avatar?: string
    username: string
    password: string
    desc: string
    roles: string[]
    buttons: string[]
    routes: string[]
    token: string
  }
}
// 服务器返回用户信息
export interface userResponseData {
  code: number
  data: userDataType
}
